package com.jiai.cloud.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 类型表
 * </p>
 *
 * @author 佳爱科技
 * @since 2017-05-24
 */
@TableName("t_good_type")
public class TGoodType extends Model<TGoodType> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品类型编号
     */
    @TableId(type = IdType.AUTO)
	private Integer id;
    /**
     * 类型名称
     */
	private String typeName;
    /**
     * 父节点
     */
	private Integer userId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName =typeName.trim();
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
